import java.util.Arrays;


public class ArrayCompare {

	public static void main(String[] args) {
		int[] ary1 = {3, 8, 6, 7, 9};
		int[] ary2 = {3, 8, 6, 7, 9};
		
		System.out.println("ary1 == ary2: " + ((ary1==ary2)? "true" : "false"));
		System.out.println("Arrays.equals(ary1, ary2): " + Arrays.equals(ary1, ary2));
	}
}
